load("//bazel:mongo_src_rules.bzl", "mongo_cc_binary", "mongo_cc_library")

package(default_visibility = ["//visibility:public"])

exports_files(
    glob([
        "*.h",
    ]),
)

mongo_cc_library(
    name = "mongotest_core",
    srcs = [
        "command_helpers.cpp",
        "file_helpers.cpp",
        "test.cpp",
        "testfile.cpp",
    ],
    deps = [
        "//src/mongo:base",
        "//src/mongo/client:clientdriver_network",
        "//src/mongo/db:common",
        "//src/mongo/db/query/util:jparse_util",
        "//src/mongo/rpc:message",
        "//src/mongo/shell:shell_utils",
        "//src/mongo/transport:transport_layer_manager",
        "//src/mongo/util:pcre_wrapper",
    ],
)

mongo_cc_binary(
    name = "mongotest",
    srcs = ["main.cpp"],
    tags = [
        "devcore",
        "dist_test",
    ],
    deps = [
        "mongotest_core",
    ],
)
